package org.jeecg.modules.wlhy.bill.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.wlhy.bill.dto.HyDriverBillDTO;
import org.jeecg.modules.wlhy.bill.entity.HyCustomerBillDTO;
import org.jeecg.modules.wlhy.bill.entity.HyDriverBill;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: hy_driver_bill
 * @Author: jeecg-boot
 * @Date:   2021-01-20
 * @Version: V1.0
 */
public interface HyDriverBillMapper extends BaseMapper<HyDriverBill> {

    Map<String, String> getTotalAmtByDriverId(@Param("driverId") String driverId , @Param("payChannel") String payChannel);
    Map<String, String> getTotalAmtByDriverIdForHsyh(@Param("driverId") String driverId , @Param("payChannel") String payChannel);
    Map<String, String> getTotalAmtByDriverIdForPingAn(@Param("driverId") String driverId , @Param("payChannel") String payChannel);

    IPage<HyDriverBillDTO> pageList(Page<HyDriverBillDTO> page, @Param(Constants.WRAPPER) QueryWrapper<HyDriverBillDTO> queryWrapper);
}
